﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TZoneKind.aspx.cs" Inherits="Views_TZoneKind" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>正贸仓储物流管理系统</title>
    <link href="../CSS/css.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
        function showEdit(Lane, Line, Lcol, Lay, Hid) {
            if (document.getElementById('txtSLine').value == "" || document.getElementById('txtSLcol').value == "") {
                document.getElementById('txtSLine').value = Hid;
                document.getElementById('txtSLcol').value = Lcol;
            }
            else if (isNaN(document.getElementById("txtSLine").value) == true || isNaN(document.getElementById("txtSLcol").value) == true) {
                alert('排或列要是数字！');
                return;
            }
            else if (document.getElementById('txtSLine').value != "" && document.getElementById('txtSLcol').value !== "" && document.getElementById('txtELine').value == "" || document.getElementById('txtELcol').value == "") {
                document.getElementById('txtELine').value = Hid;
                document.getElementById('txtELcol').value = Lcol;
            }
            else if (isNaN(document.getElementById("txtELine").value) == true || isNaN(document.getElementById("txtELcol").value) == true) {
                alert('排或列要是数字！');
                return;
            }
            else {
                document.getElementById('txtELine').value = Hid;
                document.getElementById('txtELcol').value = Lcol;
            }
        }
    </script>

    <script type="text/javascript">
        window.onload = function() {
            var a = document.getElementById("loading");
            a.parentNode.removeChild(a);
        }
        document.write('<div id="loading" style="line-height:122px;"><table cellpadding="0" width="100%"><Tr><Td align="center" height="500" valign="middle"><img src="../Images/loading.gif"></td></tr></table></div>');
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ScriptManager ID="SCM_Storage" runat="server">
        </asp:ScriptManager>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
                <td style="height: 30px">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../Images/tab_03.gif); background-repeat: repeat-x;
                                width: 12px;">
                                &nbsp;
                            </td>
                            <td style="background-image: url(../Images/tab_05.gif); background-repeat: repeat-x;
                                height: 30px;">
                                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                        <td style="width: 46%; vertical-align: middle;">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td style="width: 5%; vertical-align: middle;">
                                                        <img src="../Images/tb.gif" width="16" height="16" />
                                                    </td>
                                                    <td style="width: 95%;">
                                                        <span>你当前的位置</span>：视图管理-库区分类视图
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                        <td width="54%">
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td width="16" style="background-image: url(../Images/tab_07.gif); height: 30px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="background-image: url(../Images/tab_12.gif); width: 8px;">
                                &nbsp;
                            </td>
                            <td>
                                <asp:UpdatePanel ID="UpdateP" runat="server" UpdateMode="Conditional">
                                    <ContentTemplate>
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0" style="border: 1px solid #b5d6e6;">
                                            <tr>
                                                <td style="padding: 2px;">
                                                    <table width="100%" cellspacing="0" cellpadding="0" border="1" bordercolordark="#ffffff"
                                                        bordercolorlight="#b5d6e6">
                                                        <tr style="height: 22px;">
                                                            <td style="padding-left: 2px; width: 300px;">
                                                                开始坐标：<asp:TextBox ID="txtSLine" runat="server" Width="30px" Height="14px"></asp:TextBox>--
                                                                <asp:TextBox ID="txtSLcol" runat="server" Width="30px" Height="14px"></asp:TextBox>--
                                                                结束坐标：<asp:TextBox ID="txtELine" runat="server" Width="30px" Height="14px"></asp:TextBox>--
                                                                <asp:TextBox ID="txtELcol" runat="server" Width="30px" Height="14px"></asp:TextBox>
                                                            </td>
                                                            <td valign="middle">
                                                                <asp:ImageButton ID="ibtnSelect" runat="server" ImageUrl="~/Images/Selected.gif"
                                                                    Width="65" OnClick="ibtnSelect_Click" />
                                                                <asp:ImageButton ID="ibtnReset" runat="server" ImageUrl="~/Images/btn/btn_Reset.gif"
                                                                    Width="65" OnClick="ibtnReset_Click" />
                                                            </td>
                                                            <td style="width: 10%" align="right">
                                                                巷道选择：
                                                            </td>
                                                            <td style="width: 20%; padding-left: 2px;">
                                                                <asp:DropDownList ID="ddlNo_Lane" runat="server" OnSelectedIndexChanged="ddlNo_Lane_SelectedIndexChanged"
                                                                    AutoPostBack="true">
                                                                </asp:DropDownList>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="padding-left: 2px; padding-right: 2px;">
                                                    <table cellpadding="0" cellspacing="0" width="100%" border="0" id="tab3">
                                                        <tr>
                                                            <td style="padding: 2px; width: 100%;">
                                                                <table width="100%" cellspacing="0" cellpadding="0" border="1" bordercolordark="#ffffff"
                                                                    bordercolorlight="#b5d6e6">
                                                                    <tr>
                                                                        <td style="width: 500px;" valign="top">
                                                                            <%--<div style="overflow-y: scroll; scrollbar-arrow-color: SteelBlue;scrollbar-track-color: AliceBlue; height: 180px; width: 330px" id="dvBody">--%>
                                                                            <asp:GridView ID="GV_TZDefine" runat="server" AutoGenerateColumns="false" AllowPaging="false"
                                                                                Width="100%" BorderColor="#b5d6e6" BorderWidth="1" BorderStyle="Solid" OnRowDataBound="GV_TZDefine_RowDataBound">
                                                                                <Columns>
                                                                                    <asp:BoundField DataField="Zone_ID" HeaderText="库区号">
                                                                                        <ItemStyle Width="40" />
                                                                                    </asp:BoundField>
                                                                                    <asp:BoundField DataField="Zone_Name" HeaderText="库区名称">
                                                                                        <ItemStyle Width="140" HorizontalAlign="Left" CssClass="gridpad" />
                                                                                    </asp:BoundField>
                                                                                    <asp:TemplateField HeaderText="显示颜色">
                                                                                        <ItemTemplate>
                                                                                            <asp:Label Text="&nbsp;" Width="55" runat="server" ID="lblColor" ToolTip='<%# Bind("ShowColor") %>'></asp:Label>
                                                                                        </ItemTemplate>
                                                                                        <ItemStyle Width="40" HorizontalAlign="Center" />
                                                                                    </asp:TemplateField>
                                                                                </Columns>
                                                                                <HeaderStyle HorizontalAlign="Center" CssClass="gvH" Font-Bold="true" Height="20px" />
                                                                                <RowStyle CssClass="gridpad" HorizontalAlign="Center" />
                                                                            </asp:GridView>
                                                                            <%-- </div>--%>
                                                                        </td>
                                                                        <td style="width: 250px;" valign="top">
                                                                            <table width="100%" cellspacing="0" cellpadding="0" border="1" bordercolordark="#ffffff"
                                                                                bordercolorlight="#b5d6e6">
                                                                                <tr>
                                                                                    <td align="center">
                                                                                        当前库区
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="center">
                                                                                        <asp:DropDownList ID="DL_TZDefine" runat="server" Width="130px">
                                                                                        </asp:DropDownList>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="center">
                                                                                        <asp:ImageButton ID="ibtn_TZDefine_Submit" ImageUrl="~/Images/select.gif" runat="server"
                                                                                            Width="132" Height="20" OnClick="ibtn_TZDefine_Submit_Click" />
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </td>
                                                                        <td align="center">
                                                                            <table width="100%" cellspacing="0" cellpadding="0" border="1" bordercolordark="#ffffff"
                                                                                bordercolorlight="#b5d6e6">
                                                                                <tr>
                                                                                    <td align="right">
                                                                                        宽度：
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:TextBox ID="txtTZoneWidth" runat="server" Width="50" Height="12"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="right">
                                                                                        高度：
                                                                                    </td>
                                                                                    <td align="left">
                                                                                        <asp:TextBox ID="txtTZoneHeight" runat="server" Width="50" Height="12"></asp:TextBox>
                                                                                    </td>
                                                                                </tr>
                                                                                <tr>
                                                                                    <td align="center" colspan="2">
                                                                                        <asp:ImageButton ID="ibtnTZoneDefine_Reset" runat="server" ImageUrl="~/Images/btn/btn_Reset.gif"
                                                                                            Width="63" OnClick="ibtnTZoneDefine_Reset_Click" />
                                                                                        &nbsp;<asp:ImageButton ID="ibtnTZoneDefine_OK" runat="server" ImageUrl="~/Images/btn/btn_Ok.gif"
                                                                                            Width="63" OnClick="ibtnTZoneDefine_OK_Click" />&nbsp;
                                                                                    </td>
                                                                                </tr>
                                                                            </table>
                                                                        </td>
                                                                    </tr>
                                                                </table>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td style="padding: 2px; text-align: center;">
                                                                <%-- <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdateP">
                                                                    <ProgressTemplate>
                                                                        <asp:Image ID="imgload" ImageUrl="~/Images/loading.gif" runat="server" />
                                                                    </ProgressTemplate>
                                                                </asp:UpdateProgress>--%>
                                                                <asp:GridView ID="GV_TZoneDefine" runat="server" AutoGenerateColumns="true" OnRowDataBound="GV_TZoneDefine_RowDataBound"
                                                                    BorderWidth="1px" BorderColor="#B5D6E6">
                                                                    <HeaderStyle HorizontalAlign="Center" CssClass="gvHeader" Font-Bold="true" Height="20px" />
                                                                    <RowStyle CssClass="gridviewRow" HorizontalAlign="Center" />
                                                                </asp:GridView>
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </td>
                                            </tr>
                                        </table>
                                    </ContentTemplate>
                                </asp:UpdatePanel>
                            </td>
                            <td style="background-image: url(../Images/tab_15.gif); width: 8px;">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td style="background-image: url(../Images/tab_19.gif); height: 35px;">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td style="width: 12px; height: 35px;">
                                <img src="../Images/tab_18.gif" width="12" height="35" />
                            </td>
                            <td>
                                &nbsp;
                            </td>
                            <td width="16">
                                <img src="../Images/tab_20.gif" width="16" height="35" />
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
